//@author A0096466N
//
// **********
//
// history class contains all the information required
// to undo or redo
//
// **********

#ifndef HISTORY_H
#define HISTORY_H

#include "Event.h"

class History {

private:
	
	// past contains all past userTasks since user opened the program
	vector <Event> _past;
	
	// pastStore will contain info when user calls "reset"
	vector <Task> _pastStore;
	
	// future holds the tasks that have been 'undo', in case user wishes to redo
	vector <Event> _future;

	void clearFuture();

public:
	History(void);
	~History(void);

	void addStorage(vector<Task>);
	void addToRecords(Event);
	void transferToPast();
	void transferToFuture();
	int getFutureSize();
	int getPastSize();
	vector<Task> getPastStore();
	Event getPast();
	Event getFuture();
	
	void eraseLast();
};

#endif

